﻿using UnityEngine;
using System.Collections;

public class UIFormationModel :MonoBehaviour
{
    public GameObject model;
    public GameObject shadow;
    public string heroId;
    


    public void SetModel(GameObject model,GameObject shadow,string heroId)
    {
        this.model = model;
        model.transform.SetParent( transform );
        model.transform.localScale = Vector3.one;
        model.transform.localPosition = Vector3.zero;

        shadow.transform.SetParent(transform);
        shadow.transform.localPosition = Vector3.zero;

        this.shadow = shadow;
        this.heroId = heroId;
    }

}
